<template>
  <NModal class="d-dialog" :show="show" v-bind="$attrs">
    <div class="main">
      <n-input clearable v-model:value="value" type="text" placeholder="name" />
    </div>
  </NModal>
</template>

<script setup lang="ts">
import { NModal, NInput } from 'naive-ui'
import { ref } from 'vue'

withDefaults(defineProps<{ showTitle: boolean; title?: string; showClose?: boolean }>(), {
  showTitle: true,
  showClose: true
})

const show = ref(true)
const value = ref(null)
</script>

<style lang="scss" scoped>
.main {
  min-width: 500px;
  background-color: #10101f;
  padding: 40px;
}
.d-dialog:deep() {
  .n-input {
    background-color: transparent;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.6);
  }
  .n-input .n-input-wrapper::focus {
    outline: none;
  }
  .n-input__input::focus {
    outline: none;
  }
  .n-input .n-input__border {
    border: none;
  }
  .n-input .n-input__state-border {
    border: none;
  }
}
</style>
